/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.myapp.struts;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author Admin
 */
public class UserInsertForm extends org.apache.struts.action.ActionForm {

    private String txtapplicantID;
    private String txtUsername;
    private String txtPassword;
    private String txtapplicantName;
    private String txtapplicantPhone;
    private String txtapplicantEmail;
    private String txtapplicantAbout;
    private String txtDatecreate;

    public String getTxtDatecreate() {
        return txtDatecreate;
    }

    public void setTxtDatecreate(String txtDatecreate) {
        this.txtDatecreate = txtDatecreate;
    }

    public String getTxtPassword() {
        return txtPassword;
    }

    public void setTxtPassword(String txtPassword) {
        this.txtPassword = txtPassword;
    }

    public String getTxtUsername() {
        return txtUsername;
    }

    public void setTxtUsername(String txtUsername) {
        this.txtUsername = txtUsername;
    }

    public String getTxtapplicantAbout() {
        return txtapplicantAbout;
    }

    public void setTxtapplicantAbout(String txtapplicantAbout) {
        this.txtapplicantAbout = txtapplicantAbout;
    }

    public String getTxtapplicantEmail() {
        return txtapplicantEmail;
    }

    public void setTxtapplicantEmail(String txtapplicantEmail) {
        this.txtapplicantEmail = txtapplicantEmail;
    }

    public String getTxtapplicantID() {
        return txtapplicantID;
    }

    public void setTxtapplicantID(String txtapplicantID) {
        this.txtapplicantID = txtapplicantID;
    }

    public String getTxtapplicantName() {
        return txtapplicantName;
    }

    public void setTxtapplicantName(String txtapplicantName) {
        this.txtapplicantName = txtapplicantName;
    }

    public String getTxtapplicantPhone() {
        return txtapplicantPhone;
    }

    public void setTxtapplicantPhone(String txtapplicantPhone) {
        this.txtapplicantPhone = txtapplicantPhone;
    }

    /**
     *
     */
    public UserInsertForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        /*if (getName() == null || getName().length() < 1) {
            errors.add("name", new ActionMessage("error.name.required"));
            // TODO: add 'error.name.required' key to your resources
        }*/
        return errors;
    }
}
